home *** CD-ROM | disk | FTP | other *** search
/ 600 Games / 600games.iso / Acao / OvCata.swf / scripts / frame_3 / PlaceObject2_355_729 / CLIPACTIONRECORD onClipEvent(enterFrame).as next >
Encoding:
Text File  |  2005-08-04  |  1.1 KB  |  65 lines

  1. onClipEvent(enterFrame){
  2.    if(_root.level1._x > -1060)
  3.    {
  4.       this._x = 1000;
  5.       this._visible = false;
  6.    }
  7.    else
  8.    {
  9.       this._visible = true;
  10.    }
  11.    if(_root.levmoveR)
  12.    {
  13.       this._x -= 3;
  14.    }
  15.    if(_root.levmoveL)
  16.    {
  17.       this._x += 3;
  18.    }
  19.    if(_root.jumpR)
  20.    {
  21.       this._x -= 6;
  22.    }
  23.    if(_root.jumpL)
  24.    {
  25.       this._x += 6;
  26.    }
  27.    if(_root.notarget5)
  28.    {
  29.       this._x -= 6;
  30.    }
  31.    if(this._x < 550)
  32.    {
  33.       _root.b5i._visible = true;
  34.    }
  35.    if(this._x < _root.sheep._x + 80)
  36.    {
  37.       _root.hitarea5 = true;
  38.       _root.notarget5 = false;
  39.    }
  40.    if(this._x > _root.sheep._x + 120)
  41.    {
  42.       _root.hitarea5 = false;
  43.       _root.notarget5 = true;
  44.    }
  45.    if(_root.hitarea5)
  46.    {
  47.       if(_root.hit5)
  48.       {
  49.          _root.hit5 = false;
  50.          _root.bot5life -= _root.levelhit;
  51.          if(_root.stronghit)
  52.          {
  53.             _root.bot5life -= 1;
  54.          }
  55.          if(_root.highkick)
  56.          {
  57.             _root.bot5life -= 100;
  58.             _root.highkick = false;
  59.             gotoAndPlay(34);
  60.          }
  61.          gotoAndPlay(26);
  62.       }
  63.    }
  64. }
  65.